<?php
    header('Content-type:text/json');
    require "../connection.php";
    $order_id = $_POST['order_id'];
    $sql = "update  orders set status=-1 where id='$order_id'";
    $res = $conn->doSql($sql);
    echo json_encode($res);

?>
